package com.joshua.spring.service;

import com.github.pagehelper.PageInfo;
import com.joshua.spring.entity.Provider;
import com.joshua.spring.entity.dto.ProviderQueryCondition;

import java.util.List;

/**
 * projectName feign-test
 * package com.joshua.spring.service
 * classname  ProviderInfoService
 * <p>
 * description
 * </p>
 *
 * @author <a href="mailto:joshualwork@163.com">joshua_liu</a>
 * @date 2020/10/20 15:38
 */
public interface ProviderInfoService {
    /**
     * description:
     *
     * @param condition
     * @return {@link PageInfo< Provider>}
     * @throws
     * @author <a href="mailto:joshualwork@163.com">joshua_liu</a>
     * @date 2020/10/20 17:49
     */
    PageInfo<Provider> query(ProviderQueryCondition condition);

    /**
     * description:
     *
     * @param ids
     * @return {@link Integer}
     * @throws
     * @author <a href="mailto:joshualwork@163.com">joshua_liu</a>
     * @date 2020/10/20 16:35
     */
    Integer deleteProviderInfos(List<Integer> ids);

    /**
     * description:
     *
     * @param provider
     * @return {@link java.lang.Integer}
     * @throws
     * @author <a href="mailto:joshualwork@163.com">joshua_liu</a>
     * @date 2020/10/20 16:55
     */
    Integer insertProviderInfo(Provider provider);

    /**
     * description:
     *
     * @param provider
     * @return {@link Integer}
     * @throws
     * @author <a href="mailto:joshualwork@163.com">joshua_liu</a>
     * @date 2020/10/20 16:57
     */
    Integer updateProviderInfo(Provider provider);
}
